from  selenium  import  webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.keys import Keys
import time
driver = webdriver.Chrome()
driver.maximize_window()
driver.get('http://jwc.mypt.edu.cn')

driver.title
driver.find_element_by_xpath('//*[@id="__01"]/tbody/tr[4]/td/table/tbody/tr/td[1]/table/tbody/tr[3]/td/a/img').click()
name=driver.find_element_by_name("user")
pwd=driver.find_element_by_name("pwd")
act=ActionChains(driver)

act.move_to_element(name).click(name).key_up('hxy520',name).perform()
name.send_keys(Keys.CONTROL,'a')
name.send_keys(Keys.CONTROL,'c')
pwd.send_keys(Keys.CONTROL,'v')
driver.implicitly_wait(30)
pwd.send_keys(Keys.ENTER)

